package AppController

import "beecmf/app/AppService"

type ArticleController struct {
	AppBaseController
}

//访问文章的列表页
func (c *ArticleController) Index() {
	if c.IsHtml() {
		c.Display()
	} else {
		lists, err := AppService.GetMenuLists(1, "")
		if err != nil {
			c.Abort500(err.Error(), "/")
		}
		c.Abort200(lists, "", "")
	}
}
